//
// Created by xumy on 2021/8/4.
//
#include "Cylinder.h"
//#include "iostream"

//using namespace std;

int main(){
    Cylinder cy(3, 3, 5, 6);
    cout<<"original cylinder : " << cy << endl;

    cy.setPoint(-2, -2);
    cy.setR(8);
    cy.setH(10);
    cout<< "new cylinder : " << cy << endl;

    Point &p = cy;
    cout << "cylinder as a point : " << p << endl;

    Circle &c = cy;
    cout << "cylinder as a circle : " << c << endl;

    return 0;


}